#ifndef OVERWRITEDLG_H
#define OVERWRITEDLG_H

#include <QDialog>
#include <QDateTime>
#include "overwrite.h"

class QFileInfo;

namespace Ui {
class OverwriteDlg;
}

class OverwriteDlg : public QDialog
{
    Q_OBJECT

public:
    explicit OverwriteDlg(QWidget *parent = 0);
    ~OverwriteDlg();

public:
    void    setData(const QString& sFileName, const QFileInfo& fiOld, const QFileInfo& fiNew);
    Overwrite getResult() {return m_ret;}

signals:
    
public slots:

private slots:
    void on_pushButtonNo_clicked();

    void on_pushButtonYes_clicked();

private:
    void    closeDialog(Overwrite ow);

private:
    Ui::OverwriteDlg*   m_ui;
    Overwrite           m_ret;

};

#endif // OVERWRITEDLG_H
